package com.dx.demo;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.ApplicationContext;

import com.dx.demo.util.SpringContextUtil;

@SpringBootApplication
@ServletComponentScan
public class DemoBootMybaitsApplication {
//public class DemoBootMybaitsApplication extends SpringBootServletInitializer{
	
	public static void main(String[] args) {
		
		ApplicationContext context=SpringApplication.run(DemoBootMybaitsApplication.class, args);
		
		System.out.println("启动成功！");
		
	}
	/*
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		// TODO Auto-generated method stub
		return builder.sources(DemoBootMybaitsApplication.class);
	}*/
	
}
